<?php
require("inc/conn637.php");
$result=mysql_query("select * from lyb",$conn);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
	<p><a href="lyb_admin637.php" target="blank">返回留言页</a></p>
<form name="form1" method="post" action="delall637.php">
  <table width="1000" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>留言编号</td>
    <td>留言标题</td>
    <td>内容</td>
    <td>作者</td>
    <td>性别</td>
    <td>电子邮箱</td>
    <td>发布日期</td>
    <td>IP</td>
    <td>编辑</td>
    <td>删除</td>
  </tr>
  <? while ($row=mysql_fetch_assoc($result)){//循环开始
  ?>
  <tr>
    <td><?= $row["ID"]?></td>
    <td width="120"><?= $row["title"]?></td>
    <td width="200"><?= $row["content"]?></td>
    <td><?= $row["author"]?></td>
    <td><?= $row["sex"]?></td>
    <td><?= $row["Email"]?></td>
    <td width="180"><?= $row["addtime"]?></td>
    <td><?= $row["IP"]?></td>
    <td width="120" align="center"><a href="lyb_update637.php?id=<?= $row['ID']?>">更新</a> </td>
    
     <td><input name="selectID[]" type="checkbox" id="selectID[]" value="<?= $row["ID"]?>">
      <label for="selectID[]"></label></td>
  </tr>
<?
  }//循环结束
?>
</table>
</div>
  <input type="submit" name="button" id="button" value="删除所选记录">
</form>
</body>
</html>